home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 October / PCWorld_1999-10_cd1.bin / Software / Servis / X-setup / _SETUP.1 / XQ Shell Folders 2.xpl < prev    next >
Text File  |  1999-06-14  |  2KB  |  74 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="4"
  3. "COUNT"="3"
  4. "UIPATH"="System\File System\System Folders"
  5. "NAME"="Misc Folders"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Setup Folder"
  8. "TEXT 2"="Startup Folder"
  9. "TEXT 3"="Cache Folder
  10. "DESCRIPTION 1"=""Setup Folder" sepcifies where the files of your Windows Setup are located."
  11. "DESCRIPTION 2"=""Startup" specifies the folder where all included links and programs are executed when Windows starts."
  12. "DESCRIPTION 3"=""Cache" specifies the folder for TEMP files that should be cached. For example, Internet Explorer uses this folder for its downloaded HTML and image files."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16. "COMMENT 2"="Version 1.0"
  17.  
  18.  
  19. bWin95=true
  20.  
  21. sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\"
  22. sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\"
  23.  
  24. Sub Plugin_Initialize 
  25.  s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath")
  26.  if IsEmpty(s) then
  27.     s=RegReadValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\SourcePath")
  28.     bWin95=false
  29.  end if
  30.  SetUIElement 1,s
  31.  
  32.  
  33.  s=RegReadValue(sP1 & "Startup")
  34.  SetUIElement 2,s
  35.  
  36.  s=RegReadValue(sP1 & "Cache")
  37.  SetUIElement 3,s
  38. End Sub
  39.  
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44.  
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  s=GetUIElement(1)
  48.  if bWin95 then
  49.   Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath",s,1)
  50.  else
  51.   Call RegWriteValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\SourcePath",s,1)
  52.  end if
  53.  
  54.  
  55.  s=GetUIElement(2)
  56.  Call RegWriteValue(sP1 & "Startup",s,1)
  57.  Call RegWriteValue(sP2 & "Startup",s,1)
  58.  
  59.  s=GetUIElement(3)
  60.  Call RegWriteValue(sP1 & "Cache",s,1)
  61.  Call RegWriteValue(sP2 & "Cache",s,1)
  62.  
  63.  
  64.  
  65.  Call Restart 'Required because of ActiveDestop and other crap
  66. End Sub
  67.  
  68.  
  69. Sub Plugin_Terminate 
  70. End Sub
  71.  
  72.  
  73.  
  74.